﻿<%@ Page Language="c#" CodeBehind="ManageTache.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.ManageTachePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>ManageTache</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="ManageTache" method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/DocFlow.gif" Title="文档流转">
      <asp:Button ID="cmdNewTache" runat="server" CssClass="redbuttoncss" Text="新建环节" />
      <asp:Button ID="cmdDeleteTache" runat="server" CssClass="redbuttoncss" Text="删除环节" />
      <input class="redbuttoncss" style="width: 66px; height: 20px" onclick="javascript:location.href='Listview.aspx'" type="button" value="返回">
    </uds:PageTitle>
    <div>
      <table cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td class="selectedTab">环节管理</td>
        </tr>
      </table>
    </div>
    <asp:DataGrid ID="dgTacheList" runat="server" PageSize="15" OnPageIndexChanged="DataGrid_PageChanged" Font-Size="X-Small" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Height="101px" Width="100%" DataKeyField="Tache_ID" BorderColor="#93BEE2" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3">
      <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999" />
      <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF" />
      <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White" />
      <HeaderStyle Font-Bold="True" HorizontalAlign="Left" ForeColor="White" VerticalAlign="Middle" BackColor="#337FB2" />
      <FooterStyle ForeColor="#003399" BackColor="#99CCCC" />
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle Width="2%" />
          <ItemTemplate>
            <asp:CheckBox ID="cboTacheID" runat="server" />
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="Tache_ID" DataNavigateUrlFormatString="EditTache.aspx?TacheID={0}" DataTextField="Tache_Name" HeaderText="环节名">
          <HeaderStyle Font-Size="X-Small" Width="20%" />
          <ItemStyle Font-Size="X-Small" />
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="Tache_Remark" HeaderText="环节介绍">
          <HeaderStyle Width="40%" />
        </asp:BoundColumn>
        <asp:TemplateColumn HeaderText="结束权">
          <HeaderStyle HorizontalAlign="Center" Width="8%" />
          <ItemStyle HorizontalAlign="Center" />
          <ItemTemplate>
            <asp:Label runat="server" Text='<%# TranslateRightToFinish(DataBinder.Eval(Container, "DataItem.RightToFinish").ToString()) %>' />
          </ItemTemplate>
          <EditItemTemplate>
            <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.RightToFinish") %>' />
          </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="呈送规则">
          <HeaderStyle HorizontalAlign="Center" Width="10%" />
          <ItemStyle HorizontalAlign="Center" />
          <ItemTemplate>
            <asp:Label runat="server" Text='<%#TranslateFlowRule(DataBinder.Eval(Container, "DataItem.Flow_Rule").ToString()) %>' />
          </ItemTemplate>
          <EditItemTemplate>
            <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Flow_Rule") %>' />
          </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="会签">
          <HeaderStyle HorizontalAlign="Center" Width="12%" />
          <ItemStyle HorizontalAlign="Center" />
          <ItemTemplate>
            <asp:Label ID="PassNum" runat="server">
												<%#TranslatePassNum(DataBinder.Eval(Container, "DataItem.PassNum").ToString()) %>
            </asp:Label>
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn Text="绑定" DataNavigateUrlField="Tache_ID" DataNavigateUrlFormatString="BangdingRole.aspx?TacheID={0}" HeaderText="绑定">
          <HeaderStyle HorizontalAlign="Center" Width="8%" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkColumn>
      </Columns>
      <PagerStyle NextPageText="" HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages" />
    </asp:DataGrid>
  </form>
</body>
</html>
